<?php

require_once("../DAO/UserDAO.php");
require_once("../Entities/User.php");

// 0 : check username
if(isset($_REQUEST["type"]))
{
	$type = $_REQUEST["type"];
	
	$kqList = array();
	if ($type == 0)
	{
		$userDao = new UserDAO();
		$userName = $_REQUEST["username"];
		$kqList["result"] = $userDao->CheckUsername($userName);
		echo json_encode($kqList);
	}
	
	
}


?>